package com.gzedu.frame.logic.adapter;

import java.util.List;
import java.util.Map;
import android.widget.BaseExpandableListAdapter;

/**
 * 
*<font color="#0000FF"> 
*<p> 拓展性适配器基础类</p>
*</font>
* @Title: McExBaseAdapter.java
* @Package com.gzedu.frame.logic.adapter
* @company:		广州远程教育中心有限公司
* @author :		戴俊林
* @date 2012-8-28 下午5:39:45
* @version V1.0
 */
public abstract class McExBaseAdapter extends BaseExpandableListAdapter
		implements IMcAdapter {

	public List<Map<String, String>> groupList;
	public List<List<Map<String, String>>> childInfoList;

	public Map<String, String> groupMap;
	public Map<String, String> childMap;

	public final int childViewKey = 0x7f040001;
	public final int groupViewKey = 0x7f040002;

	@Override
	public int getGroupCount() {
		return groupList.size();
	}

	@Override
	public int getChildrenCount(int groupPosition) {
		return childInfoList.get(groupPosition).size();
	}

	@Override
	public long getGroupId(int groupPosition) {
		return groupPosition;
	}

	@Override
	public long getChildId(int groupPosition, int childPosition) {
		return childPosition;
	}

	@Override
	public boolean hasStableIds() {
		return true;
	}

	@Override
	public boolean isChildSelectable(int groupPosition, int childPosition) {
		return true;
	}

}
